package com.zelix;

import java.util.HashSet;
import java.util.Hashtable;

class fq extends dq
{

    boolean b;
    String e;
    Hashtable c;
    vp d;

    fq(cy cy, boolean flag, String s)
    {
        super(cy);
        c = new Hashtable();
        b = flag;
        if(flag)
            d = new vp(1);
        e = s;
    }

    String a(String s, qy qy, fy fy, HashSet hashset, re re, dd dd)
    {
        sx sx1 = (sx)c.get(s);
        if(sx1 == null)
        {
            sx1 = new sx(-1);
            c.put(s, sx1);
        }
        String s1;
        do
            s1 = a(sx1);
        while(!a(s1, s, qy, fy, hashset, re, dd));
        return s1;
    }

    String a(sx sx1)
    {
        if(b)
        {
            String s;
            do
                s = d.a(sx1.c(), e);
            while(s == null);
            return s;
        } else
        {
            return (e == null ? "" : e) + String.valueOf(sx1.c());
        }
    }
}